<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>1.对象中的方法</title>
  </head>
  <body>
    <script type="text/javascript" >
      let obj = {
        a:1,
        b:2,
        /* c:function(){
          console.log('c')
        } */
        c(){
          console.log('c')
        }
      }
      console.log(obj)
    </script>
  </body>
</html>